package com.my.code.unsafe;

public class UnsafeTest {

    public static void main(String[] args) throws InstantiationException {

        User user = (User) UnsafeUtil.UNSAFE.allocateInstance(User.class);
        System.out.println("user.getAge() = " + user.getAge());

        User user2 = new User();
        System.out.println("user2.getAge() = " + user2.getAge());
    }

}
